import { Course, CourseDetail } from '../models/course.model';

export const courses: CourseDetail[] = [
    {
        id: 1,
        title: "TypeScript完全指南",
        description: "从零开始学习TypeScript",
        teacherId: 1,
        price: 199,
        duration: 1200,
        category: "编程语言",
        tags: ["TypeScript", "JavaScript", "前端"],
        createdAt: new Date("2023-01-01"),
        updatedAt: new Date("2023-01-01"),
        chapters: [
            {
                id: 1,
                title: "TypeScript基础",
                content: "类型系统介绍",
                duration: 30
            }
        ]
    },
    {
        id: 2,
        title: "Node.js实战",
        description: "Node.js服务端开发",
        teacherId: 2,
        price: 299,
        duration: 1800,
        category: "后端开发",
        tags: ["Node.js", "Express", "后端"],
        createdAt: new Date("2023-02-01"),
        updatedAt: new Date("2023-02-01"),
        chapters: [
            {
                id: 1,
                title: "Node.js基础",
                content: "环境搭建",
                duration: 45
            }
        ]
    }
];
